package dae;

import dae.instance.CameraInstance;
import dae.instance.ControllerInstance;
import dae.instance.LightInstance;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class Node
{
    @XmlAttribute
    public String name;
    @XmlAttribute
    public String id;
    @XmlAttribute
    public String sid;
    @XmlAttribute
    public String type;
    public Matrix matrix;
    public List <Node> node = new ArrayList <>();
    ControllerInstance instance_controller;
    LightInstance instance_light;
    CameraInstance instance_camera;

    @Override
    public String toString()
    {
        return name;
    }
}
